import {request} from "../utils/request";

/**
 * 获取菜单
 * @param {*} username /
 * @returns /
 */
export function menu() {
    return request({
        url: '/auth/menu',
        method: 'get',

    });
}

export function RoleAuth() {
    return request({
        url: '/auth/info',
        method: 'get',

    });
}

export function del(roleId, authId) {
    return request({
        url: '/auth/delRoleAuth',
        method: 'delete',
        headers: {
            'Role-Id': roleId,
            'Auth-Id': authId
        }
    });
}

export function plus(data){
    return request({
        url:'/auth/plusRoleAuth',
        method:'post',
        data
    })
}